using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EPiSugar.EntityAdapter;

namespace EPiSugar.Tests.EntityAdapter.Entities
{
    public class Page
    {
        [BindTo(PageProperty.PageName)]
        public string Name { get; set; }

        [BindTo(PageProperty.PageStartPublish)]
        public DateTime Published { get; set; }

        [BindTo(PageProperty.PageStopPublish)]
        public DateTime Expires { get; set; }

        [BindTo(PageProperty.Children)]
        public IList<Page> Children { get; set; }

        [BindToProperty("MainIntro")]
        public string Summary { get; set; }
        
        // Auto bound by property name
        public string MainBody { get; set; }

        [BindToReference("ReadMoreLink")]
        public Page ReadMore { get; set; }
    }
}
